package cn.moningxi.service;

import cn.moningxi.bean.CustomerInfomation;
import cn.moningxi.bean.OrderDetail;
import cn.moningxi.bean.OrderMaster;

import java.util.List;

public interface OrderMasterService {
    List<OrderMaster> getOrder(String customerId);

    void addDetail(OrderDetail orderDetail, String uid);

    /**
     * 根据顾客id查询用户未支付订单
     *
     * @param customerId
     * @return
     */
    List<OrderMaster> queryNoPayByCid(String customerId);

    List<OrderMaster> selectAllOrderInfomation();

    OrderMaster selectOrderInfoById(Integer orderId);

    /**
     * 结算所有订单
     *
     * @param onlineUser
     */
    void unifiedOrder(CustomerInfomation onlineUser);

    /**
     * 根据订单id删除订单
     *
     * @param orderId
     */
    void deleteOrderById(Long orderId);

}
